
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>数据驱动 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="new-vue.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../prepare/">
            
                <a href="../prepare/">
            
                    
                    准备工作
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../prepare/flow.html">
            
                <a href="../prepare/flow.html">
            
                    
                    认识flow
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../prepare/directory.html">
            
                <a href="../prepare/directory.html">
            
                    
                    Vue.js源码目录设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../prepare/build.html">
            
                <a href="../prepare/build.html">
            
                    
                    Vue.js源码构建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../prepare/entrance.html">
            
                <a href="../prepare/entrance.html">
            
                    
                    从入口开始
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="./">
            
                <a href="./">
            
                    
                    数据驱动
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.3.1" data-path="./">
            
                <a href="./">
            
                    
                    数据驱动
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="new-vue.html">
            
                <a href="new-vue.html">
            
                    
                    new Vue发生了什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="mounted.html">
            
                <a href="mounted.html">
            
                    
                    Vue实例挂载的实现
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="render.html">
            
                <a href="render.html">
            
                    
                    render
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="virtual-dom.html">
            
                <a href="virtual-dom.html">
            
                    
                    Visual Dom
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="create-element.html">
            
                <a href="create-element.html">
            
                    
                    createElement
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="update.html">
            
                <a href="update.html">
            
                    
                    update
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >数据驱动</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x6570;&#x636E;&#x9A71;&#x52A8;">&#x6570;&#x636E;&#x9A71;&#x52A8;</h1>
<p>Vue.js &#x4E00;&#x4E2A;&#x6838;&#x5FC3;&#x601D;&#x60F3;&#x662F;&#x6570;&#x636E;&#x9A71;&#x52A8;&#x3002;&#x6240;&#x8C13;&#x6570;&#x636E;&#x9A71;&#x52A8;&#xFF0C;&#x662F;&#x6307;&#x89C6;&#x56FE;&#x662F;&#x7531;&#x6570;&#x636E;&#x9A71;&#x52A8;&#x751F;&#x6210;&#x7684;&#xFF0C;&#x6211;&#x4EEC;&#x5BF9;&#x89C6;&#x56FE;&#x7684;&#x4FEE;&#x6539;&#xFF0C;&#x4E0D;&#x4F1A;&#x76F4;&#x63A5;&#x64CD;&#x4F5C; DOM&#xFF0C;&#x800C;&#x662F;&#x901A;&#x8FC7;&#x4FEE;&#x6539;&#x6570;&#x636E;&#x3002;&#x5B83;&#x76F8;&#x6BD4;&#x6211;&#x4EEC;&#x4F20;&#x7EDF;&#x7684;&#x524D;&#x7AEF;&#x5F00;&#x53D1;&#xFF0C;&#x5982;&#x4F7F;&#x7528; jQuery &#x7B49;&#x524D;&#x7AEF;&#x5E93;&#x76F4;&#x63A5;&#x4FEE;&#x6539; DOM&#xFF0C;&#x5927;&#x5927;&#x7B80;&#x5316;&#x4E86;&#x4EE3;&#x7801;&#x91CF;&#x3002;&#x7279;&#x522B;&#x662F;&#x5F53;&#x4EA4;&#x4E92;&#x590D;&#x6742;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x53EA;&#x5173;&#x5FC3;&#x6570;&#x636E;&#x7684;&#x4FEE;&#x6539;&#x4F1A;&#x8BA9;&#x4EE3;&#x7801;&#x7684;&#x903B;&#x8F91;&#x53D8;&#x7684;&#x975E;&#x5E38;&#x6E05;&#x6670;&#xFF0C;&#x56E0;&#x4E3A; DOM &#x53D8;&#x6210;&#x4E86;&#x6570;&#x636E;&#x7684;&#x6620;&#x5C04;&#xFF0C;&#x6211;&#x4EEC;&#x6240;&#x6709;&#x7684;&#x903B;&#x8F91;&#x90FD;&#x662F;&#x5BF9;&#x6570;&#x636E;&#x7684;&#x4FEE;&#x6539;&#xFF0C;&#x800C;&#x4E0D;&#x7528;&#x78B0;&#x89E6; DOM&#xFF0C;&#x8FD9;&#x6837;&#x7684;&#x4EE3;&#x7801;&#x975E;&#x5E38;&#x5229;&#x4E8E;&#x7EF4;&#x62A4;&#x3002;</p>
<p>&#x5728; Vue.js &#x4E2D;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x91C7;&#x7528;&#x7B80;&#x6D01;&#x7684;&#x6A21;&#x677F;&#x8BED;&#x6CD5;&#x6765;&#x58F0;&#x660E;&#x5F0F;&#x7684;&#x5C06;&#x6570;&#x636E;&#x6E32;&#x67D3;&#x4E3A; DOM&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;app&quot;</span>&gt;</span>

<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<pre><code class="lang-js"><span class="hljs-keyword">var</span> app = <span class="hljs-keyword">new</span> Vue({
  el: <span class="hljs-string">&apos;#app&apos;</span>,
  data: {
    message: <span class="hljs-string">&apos;Hello Vue!&apos;</span>
  }
})
</code></pre>
<p>&#x6700;&#x7EC8;&#x5B83;&#x4F1A;&#x5728;&#x9875;&#x9762;&#x4E0A;&#x6E32;&#x67D3;&#x51FA; <code>Hello Vue</code>&#x3002;&#x63A5;&#x4E0B;&#x6765;&#xFF0C;&#x6211;&#x4EEC;&#x4F1A;&#x4ECE;&#x6E90;&#x7801;&#x89D2;&#x5EA6;&#x6765;&#x5206;&#x6790; Vue &#x662F;&#x5982;&#x4F55;&#x5B9E;&#x73B0;&#x7684;&#xFF0C;&#x5206;&#x6790;&#x8FC7;&#x7A0B;&#x4F1A;&#x4EE5;&#x4E3B;&#x7EBF;&#x4EE3;&#x7801;&#x4E3A;&#x4E3B;&#xFF0C;&#x91CD;&#x8981;&#x7684;&#x5206;&#x652F;&#x903B;&#x8F91;&#x4F1A;&#x653E;&#x5728;&#x4E4B;&#x540E;&#x5355;&#x72EC;&#x5206;&#x6790;&#x3002;&#x6570;&#x636E;&#x9A71;&#x52A8;&#x8FD8;&#x6709;&#x4E00;&#x90E8;&#x5206;&#x662F;&#x6570;&#x636E;&#x66F4;&#x65B0;&#x9A71;&#x52A8;&#x89C6;&#x56FE;&#x53D8;&#x5316;&#xFF0C;&#x8FD9;&#x4E00;&#x5757;&#x5185;&#x5BB9;&#x6211;&#x4EEC;&#x4E5F;&#x4F1A;&#x5728;&#x4E4B;&#x540E;&#x7684;&#x7AE0;&#x8282;&#x5206;&#x6790;&#xFF0C;&#x8FD9;&#x4E00;&#x7AE0;&#x6211;&#x4EEC;&#x7684;&#x76EE;&#x6807;&#x662F;&#x5F04;&#x6E05;&#x695A;&#x6A21;&#x677F;&#x548C;&#x6570;&#x636E;&#x5982;&#x4F55;&#x6E32;&#x67D3;&#x6210;&#x6700;&#x7EC8;&#x7684; DOM&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: 数据驱动">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="new-vue.html" class="navigation navigation-next " aria-label="Next page: new Vue发生了什么">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"数据驱动","level":"1.3.1","depth":2,"next":{"title":"new Vue发生了什么","level":"1.3.2","depth":2,"path":"v2/data-driven/new-vue.md","ref":"v2/data-driven/new-vue.md","articles":[]},"previous":{"title":"数据驱动","level":"1.3","depth":1,"path":"v2/data-driven/README.md","ref":"v2/data-driven/README.md","articles":[{"title":"数据驱动","level":"1.3.1","depth":2,"path":"v2/data-driven/index.md","ref":"v2/data-driven/index.md","articles":[]},{"title":"new Vue发生了什么","level":"1.3.2","depth":2,"path":"v2/data-driven/new-vue.md","ref":"v2/data-driven/new-vue.md","articles":[]},{"title":"Vue实例挂载的实现","level":"1.3.3","depth":2,"path":"v2/data-driven/mounted.md","ref":"v2/data-driven/mounted.md","articles":[]},{"title":"render","level":"1.3.4","depth":2,"path":"v2/data-driven/render.md","ref":"v2/data-driven/render.md","articles":[]},{"title":"Visual Dom","level":"1.3.5","depth":2,"path":"v2/data-driven/virtual-dom.md","ref":"v2/data-driven/virtual-dom.md","articles":[]},{"title":"createElement","level":"1.3.6","depth":2,"path":"v2/data-driven/create-element.md","ref":"v2/data-driven/create-element.md","articles":[]},{"title":"update","level":"1.3.7","depth":2,"path":"v2/data-driven/update.md","ref":"v2/data-driven/update.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"v2/data-driven/index.md","mtime":"2021-02-02T00:48:53.870Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-02-02T01:41:31.061Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

